.el-header {
  height: 48px;
  padding: 0px;
}
.header-back-container {
  height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid @primaryBorderColor;
  display: flex;
  align-items: center;
}

.el-page-header__left {
  align-items: center;
  height: 28px;
  line-height: 28px;
  padding: 0 12px;
  margin-right: 32px;
  color: #e1e2e6;
  background-color: @ruleBackBgColor;
  border-radius: 16px;
  border: #3f4558;
  border: 1px solid @ruleBackBorderColor;
}
.el-page-header__left:hover {
  //   color: #2658d1;
  border-color: #2658d1;
}

.el-page-header__left::after {
  // background-color: rgba(249, 249, 249, 0.64);
  background-color: @ruleDeviceColor;
  height: 22px;
  position: absolute;
  width: 1px;
  top: 50%;
  transform: translateY(-50%);
}

.el-page-header .el-page-header__left {
  //   background-color: #2b303f;
  border-radius: 24px;
  padding: 3px 12px;
}

.el-page-header__left .el-icon-back {
  font-size: 18px;
  margin-right: 6px;
  align-self: center;
  color: @ruleBackText;
}

.el-page-header__title {
  font-size: 14px;
  font-weight: 500;
  color: @ruleBackText;
}

.el-page-header {
  flex: 1;
  overflow: hidden;
  display: flex;
  line-height: 24px;
}
.el-breadcrumb .el-breadcrumb__item:last-child .el-breadcrumb__inner,
.el-page-header {
  color: hsla(0, 0%, 97.6%, 0.64);
}

.el-page-header__content {
  line-height: 30px;
  font-size: 16px;
  font-weight: 700;
}

.title-box {
  display: flex;
  align-items: center;
  height: 100%;
  .title {
    // color: hsla(0, 0%, 97.6%, 0.64);
    color: @ruleHeaderTitle;
  }
}

.el-main {
  padding: 0;
}

.form {
  padding: 20px 60px;
  .step-box {
    display: flex;
    width: 100%;
    border-left: 1px solid @primaryBorderColor;
  }
  .step-title {
    flex: 0 0 64px;
    display: flex;
    position: relative;
  }
  .step-icon {
    position: absolute;
    top: 0;
    left: -8px;
    width: 16px;
    height: 16px;
    border: 1px solid #4d80e6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    // .yuanxin {
    //   color: #4d80e6;
    // }
    &::before {
      content: " ";
      display: block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: #4d80e6;
    }
  }
  .step-num {
    position: absolute;
    line-height: 16px;
    top: 0;
    left: 18px;
    font-weight: 700;
    font-size: 16px;
    color: @ruleTextTitle;
  }
  .step-container {
    flex: 1;
    max-width: 1124px;
  }
  .title {
    position: relative;
    line-height: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: @ruleTextTitle;
  }
  .content {
    padding: 20px 0 40px;
  }
  .rule-type {
  }

  .is-bordered {
    border-color: @primaryBorderColor;
  }
  .is-checked {
    border-color: #409eff;
  }
  .el-radio__label {
    color: #f9f9f9a3;
  }
}

.dialog-footer {
  height: 60px;
  display: flex;
  align-items: center;
  border-top: 1px solid @primaryBorderColor;
}

.conditions {
  width: 100%;
  display: flex;
  align-items: center;
}

.addCondition {
  color: @primaryThemeTxtColor2;
  display: inline-block;
  font-size: 13px;
  .addCondition-box {
    display: flex;
    align-items: center;
    border: 1px dotted @primaryBorder;
    padding: 2px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.5s;
    &:hover {
      border-color: #409eff;
    }
    .el-icon-plus {
      margin-right: 4px;
      font-size: 10px;
    }
  }
}

.el-icon-delete {
  color: #dc362e;
  font-size: 18px;
  margin-bottom: 18px;
  //   margin-left: 10px;
  cursor: pointer;
}

.deviceModel {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

// 树形结构
::v-deep .el-tree {
  height: 100%;
  font-size: 14px;
  background: @primaryHeaderBgcolor;
  box-sizing: border-box;
  padding: 12px 10px;
  color: @primaryThemeTxtColor;
  overflow: hidden;
  overflow-y: scroll;
}

::v-deep .el-tree-node__content {
  // padding: 5px 0 !important;
  &:hover {
    background: @paginationBgcolor !important;
    border-radius: 4px;
  }
}

::v-deep .el-tree-node.is-focusable > .el-tree-node__content {
  padding: 5px 0;
}

// 解决收起后白色背景问题
::v-deep .el-tree-node.is-expanded > .el-tree-node__content {
  background-color: transparent;
}

// 解决展开后白色背景问题
::v-deep .el-tree-node.is-focusable > .el-tree-node__content {
  background-color: transparent;
  border-radius: 4px;
}

::v-deep .is-current > .el-tree-node__content > .el-tree-node__label {
  color: #f0f0f0;
}

// 范围样式
.range {
  display: flex;
  width: 100%;
  margin-bottom: 20px;
  margin-left: 100px;
  .range-left {
    width: 60%;
    // width: 52%;
    height: 420px;
    border: 1px solid @primaryBorderColor;
    // .range-header {
    //   height: 60px;
    //   border-bottom: 1px solid @primaryBorderColor;
    //   display: flex;
    //   align-items: center;
    //   justify-content: flex-end;
    //   box-sizing: border-box;
    //   padding: 0 10px;
    // }
    .range-bottom {
      height: 340px;
      overflow: auto;
    }
  }

  .range-middle {
    width: 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    .middle-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: @primaryBgcolor2;
      display: flex;
      align-items: center;
      justify-content: center;
      .el-icon-arrow-right {
        font-size: 20px;
        color: @primaryBorderColor2;
      }
    }
  }

  .range-right {
    width: 34%;
    height: 420px;
    border: 1px solid @primaryBorderColor;
  }
  .range-header {
    height: 60px;
    border-bottom: 1px solid @primaryBorderColor;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    padding: 0 10px;
  }
}

::v-deep .el-radio {
  color: @primaryThemeTxtColor2;
}
::v-deep .el-radio__input.is-checked + .el-radio__label {
  color: #7367f0;
}
::v-deep .el-radio__input.is-checked .el-radio__inner {
  border-color: #7367f0;
  background: #7367f0;
}

::v-deep .el-checkbox__inner {
  background-color: transparent !important;
  border: 1px solid @primaryBorder !important;
}

.shanchu {
  cursor: pointer;
}

// 执行源 设备型号选择
.execute-model {
  width: 30%;
  display: flex;
  align-items: center;
  margin-right: 10px;
  background: @primaryBgcolor2;
  padding: 18px;
  border-radius: 8px;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 10px;
  box-sizing: border-box;
  .el-icon-delete {
    color: #dc362e;
    font-size: 18px;
    margin-bottom: 0;
    cursor: pointer;
  }
  ::v-deep .el-form-item {
    margin-bottom: 0 !important;
  }
}
.active {
  border: 1px solid #7367f0;
}

// textarea
::v-deep .el-textarea__inner {
  border: 1px solid @primaryBorder !important;
}

// // 多选框
.el-checkbox {
  color: @primaryThemeTxtColor2 !important;
}

// 单选框
.el-radio__inner {
  background: none !important;
}

::v-deep .el-radio__input.is-disabled .el-radio__inner {
  background: #e1e2e6 !important;
}

::v-deep .el-popper .popper__arrow,
.el-popper .popper__arrow::after {
  border-style: none !important;
}
::v-deep .popper__arrow::after {
  // border-bottom-color: @primarydropdownMenuBgcolor !important;
  border-bottom-color: transparent !important;
}

// 高级搜索
::v-deep .popover_from .el-form-item__label {
  color: @primaryThemeTxtColor2;
  padding: 0px;
}

::v-deep .el-input__inner {
  color: var(--primaryContentTxt, #f1f1f1) !important;
  background-color: @primaryHeaderBgcolor !important;
  border: 1px solid @primaryBorder !important;
}

